import request from '@/utils/request'

export function CertificateList(query) {
  return request({
    url: '/kong/certificate/list',
    method: 'get',
    params: query
  })
}

export function addCertificate(data) {
  return request({
    url: '/kong/certificate/add',
    method: 'post',
    data: data
  })
}

export function deleteCertificate(id) {
  return request({
    url: '/kong/certificate/delete/'+id,
    method: 'post',
  })
}

export function updateCertificate(data) {
  return request({
    url: '/kong/certificate/update/'+data.id,
    method: 'post',
    data: data
  })
}